<?php
class Custom_Model_Entities_NewsEntity extends Custom_Model_EntityAbstract
{
	protected $_name = 'News';
    protected $_primary = 'id';
    protected $_rowClass = 'Custom_Model_Entities_NewsRow';
    
    public function getAllNews()
    {
    	$select = $this->select();
        return $this->fetchAll($select)->toArray();
    }
}